using System.ComponentModel;
using System.ComponentModel.DataAnnotations;

namespace AdminApiTemplate.Aggregates.Login
{
    /// <summary>
    /// 账号密码登录
    /// </summary>
    public class ByPassRequestModel
    {
        /// <summary>
        /// 账号
        /// </summary>
        [Description("账号")]
        [Required(ErrorMessage = "必填")]
        [MaxLength(50, ErrorMessage = "最多{0}个字符")]
        public string UserName { get; set; }

        /// <summary>
        /// 密码
        /// </summary>
        [Description("密码")]
        [Required(ErrorMessage = "必填")]
        [MaxLength(50, ErrorMessage = "最多{0}个字符")]
        public string UserPass { get; set; }
    }
}
